package com.newbie.cellsms.service;

import java.math.BigInteger;
import java.text.Normalizer;

public class Main {
	public static void main(String args[]) throws Exception {
		System.out.println(formatString("é"));
		System.out.println(String.format("%040x", new BigInteger("你好".getBytes("UTF-8"))));
		System.out.println(String.format("%040d", new BigInteger("你好".getBytes("UTF-8"))));
	}

	public static String formatString(String s) {
		String temp = Normalizer.normalize(s, Normalizer.Form.NFD);
		return temp.replaceAll("[^\\p{ASCII}]", "");
	}
}
